require 'aurora/server/base'

Aurora::Server::Base.new('http://localhost:2828/', :logger_level => Logger::INFO) do |serv, uri, logger|
  serv.authenticate do |user, pass|
    # ldap = LDAP.new('http://localhost/')
    # if ldap.bind("#{user}@domain")
    if user == 'mtodd' and pass == 'test'
      # successfully bound/authenticated
      Aurora::Server::Token.new(user, pass)
    else
      false
    end
  end
end
